package com.arvin.faceDetect.model

import android.graphics.Bitmap

data class FaceData(
    val id: String,
    val name: String,
    val faceImage: Bitmap,
    val faceFeatures: FloatArray
) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as FaceData

        if (id != other.id) return false
        if (name != other.name) return false
        if (!faceImage.sameAs(other.faceImage)) return false
        if (!faceFeatures.contentEquals(other.faceFeatures)) return false

        return true
    }

    override fun hashCode(): Int {
        var result = id.hashCode()
        result = 31 * result + name.hashCode()
        result = 31 * result + faceImage.hashCode()
        result = 31 * result + faceFeatures.contentHashCode()
        return result
    }
} 